package top.boycharse.blog.bean.Response;

import top.boycharse.blog.dao.bean.Article;

public class ArticleRespone {

    private Integer id;

    private String articleName;

    private String articleSummary;

    private String author;

    private String type;

    public ArticleRespone(Article article) {
        this.id = article.getId();
        this.articleName = article.getArticleName();
        this.articleSummary = article.getArticleSummary();
        this.author = article.getAuthor().getUserName();
        this.type = article.getType();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getArticleName() {
        return articleName;
    }

    public void setArticleName(String articleName) {
        this.articleName = articleName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getArticleSummary() {
        return articleSummary;
    }

    public void setArticleSummary(String articleSummary) {
        this.articleSummary = articleSummary;
    }
}
